package com.example.myapplication;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.widget.GridView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import androidx.recyclerview.widget.ListAdapter;

import java.util.ArrayList;
import java.util.List;

public class ketan2 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_ketan2);
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
            Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
            return insets;
        });

//        GridView mylist = findViewById(R.id.mylistview);
//        List<String> list1=new ArrayList<~>();
//        for (int i =10;i<100;i++){
//            list1.add("item"+i);
//        }
//        ListAdapter adapter = new ArrayList<String>(this,android.R.layout.simple_expandable_list_item_1,list1);
//        mylist.setAdapter(adapter);
    }
}